class Dog(object):
    __tooth = 10

    @classmethod
    def get_tooth(cls): # 类方法
        return cls.__tooth # 类属性

    def test(self):
        return 0



wangcai = Dog()
result = wangcai.get_tooth()
print(result)  # 10